package com.letoken.platform.repo.admin.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.letoken.platform.repo.admin.po.AppVersion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.admin.req.config.QueryVersionReq;
import com.letoken.platform.repo.admin.res.config.QueryVersionByIdRes;
import com.letoken.platform.repo.admin.res.config.QueryVersionRes;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * App系统版本信息表 Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2022-12-12
 */
public interface AppVersionMapper extends BaseMapper<AppVersion> {

    Page<QueryVersionRes> queryVersionList(@Param("page") Page<QueryVersionRes> page, @Param("req") QueryVersionReq req);

    QueryVersionByIdRes queryVersionById(@Param("id") Integer id);

    int forceUpdateVersionById(@Param("id") Integer id);

    int notForceUpdateVersionById(@Param("id") Integer id);
}
